#define THIS_FILE "hcam_init.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

hcam_configpath = "";

if (isDedicated) exitWith {};

// Define vars (or see if they have already been assigned by the server)
if (isNil "hcam_goggles") then {
	hcam_goggles = ["G_Tactical_Clear","G_Tactical_Black","G_Combat"];
};
if (isNil "hcam_headgear") then {
	hcam_headgear = []; // ["H_HelmetB","H_HelmetB_paint"," H_HelmetB_light","H_HelmetO_ocamo","H_PilotHelmetHeli_B","H_PilotHelmetHeli_O"];
};
if (isNil "hcam_units") then {
	hcam_units = "group";
};

hcam_active = false;
hcam_id = 0;
hcam_zoom = 1;

// Init
(findDisplay 46) displayAddEventHandler ["KeyDown","if (isPipEnabled) then {[_this select 1,_this select 2,_this select 3,_this select 4] call hcam_fnc_hcamcontrol};false"];

